import Util from '../../common/js/util'

/**

 * @param {number} enquiryPersonNum 询价人id
 * @param {string} platform 平台：sj-商家 fn-客户
 */
export const enquiryList = (params = {}) => {
	return Util.request({
		url: `/api/enquiry/list`,
		method: 'POST',
		data: params
	})
}

// 订单列表
export const orderList = (params = {}) => {
	return Util.request({
		url: `/api/personalcenter/order/list`,
		method: 'POST',
		data: params
	})
}

// 更新订单状态
export const updateOrderStatus = (params = {}) => {
	return Util.request({
		url: `/api/order/edit`,
		method: 'POST',
		data: params
	})
}


// 订单详情
export const orderDetail = (params = {}) => {
	return Util.request({
		url: `/api/personalcenter/order/detail`,
		method: 'POST',
		data: params
	})
}